<template>
	<view class="footer">
		<view class="f1">
			<navigator open-type="switchTab" url="/pages/user-center/user-center"><text>登录</text></navigator>
			<text class="f1b"></text>
			<navigator open-type="switchTab" url="/pages/user-center/user-center"><text>注册</text></navigator>
			<text class="f1b"></text>
			<navigator open-type="switchTab" url="/pages/user-center/user-center"><text>客户服务</text></navigator>
			<text class="f1b"></text>
			<navigator url="/pages/brands/brands"><text @tap="goTop">返回顶部</text></navigator>
		</view>
		<view class="f2">
			
			<view class="middle">
			<image src="http://www.codeboy.com:9999/img/footer/icon1.png" mode=""></image>
				<text>品质保障</text>	
			</view>
			
			<view class="middle">
			<image src="http://www.codeboy.com:9999/img/footer/icon2.png" mode=""></image>
				<text>私人订制</text>	
			</view>
			
			<view class="middle">
			<image src="http://www.codeboy.com:9999/img/footer/icon3.png" mode=""></image>
				<text>学员特供</text>	
			</view>
			
			<view class="middle">
			<image src="http://www.codeboy.com:9999/img/footer/icon4.png" mode=""></image>
				<text>专属特权</text>	
			</view>
			
		</view>
		<view class="f3">
			<text>Copyright© 2004-2022 蓝蓝噜商城.com版权所有</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"xz-footer",
		data() {
			return {
				
			};
		},
		methods:{
			goTop(){
				uni.pageScrollTo({
					scrollTop:0
				})
			},
		}
	}
</script>

<style lang="scss">
.footer{
	align-items: center;
	margin-top: 10rpx;
	box-shadow: 0 0 15rpx $uni-border-color;
	.f1{
		.f1b{
			border-left: 1px solid $uni-border-color;
		}
		padding: 10rpx;
		display: flex;
		justify-content: space-around;
	}
	.f2{
		padding: 10rpx;
		border-top: 1px solid $uni-border-color;
		display: flex;
		justify-content: space-around;
		 image{
			width: 50rpx;
			height: 50rpx;
		}
	}
	
	.f3{
		text-align: center;
		padding: 10rpx;
		border-top: 1px solid $uni-border-color;
	}
}
.middle{
	display: flex; 
	flex-direction:column; 
	align-items:center;
	align-content: space-around;
	text{
		padding: 5rpx;
	}
}
</style>
